package com.pine.dcts.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pine.dcts.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {

    List<String> getRoleCodesByUserId(@Param("userId") Integer userId);

    List<Integer> getRoleIdsByUserId(@Param("userId") Integer userId);
}
